package com.youlai.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.youlai.system.model.entity.Employ;
import com.youlai.system.model.form.EmployForm;
import com.youlai.system.model.query.EmployQuery;
import com.youlai.system.model.vo.EmployExportVO;
import com.youlai.system.model.vo.EmployVO;
import org.apache.poi.hpsf.Array;
import org.springframework.security.core.Authentication;

import java.util.Arrays;
import java.util.List;

public interface EmployService extends IService<Employ> {

    PageInfo<EmployVO> getEmployList(EmployQuery queryParams);

    Integer saveEmploy(EmployForm employForm);
    Employ selectNewOne(String workNumber);
    Integer UpdateEmploy(EmployForm employForm);

    boolean deleteByIds(String ids);

    EmployForm getEmployForm(Long id);

    boolean insertEmploy(Employ employ);

    List<EmployExportVO> listExportEmploy(EmployQuery queryParams);

    Integer saveEmployPhoto(String staffPhoto,Integer id);


    Integer saveEmployRole(Integer id,String[] roleIdArray);

    Integer saveEmployRole1(Integer id, String roleIdArray);

    Employ login(String workNumber, String mobile);

    Employ getCurrentEmployInfo();
    boolean deleteEmploy(Integer id);
    int updatetimeofout(Employ employ);
}
